
set :deploy_to, "/home/wangzhen/rails/empirejade_test"
#set :deploy_to, "/home/musicstory/rails"
role :app, "109.74.204.219"
role :web, "109.74.204.219"
role :db,  "109.74.204.219", :primary => true
default_run_options[:pty] = true

namespace :mod_rails do
  desc <<-DESC
  Restart the application altering tmp/restart.txt for mod_rails.
  DESC
  task :restart, :roles => :app do
#    run "touch  #{File.join(deploy_to, current_dir)}/tmp/restart.txt"
#    run "cp /home/musicstory/deploy/database.yml /home/musicstory/rails/current/config/."
#    run "cp /var/www/musicstory/staging/deploy/database.yml /var/www/musicstory/staging/rails/current/config/."
#    run "cp /var/www/musicstory/staging/deploy/task_scheduler.rb /var/www/musicstory/staging/rails/current/config/initializers/."
#    run "cp /var/www/musicstory/deploy/app_config.rb /var/www/suntory/suntory-ec/rails/current/config/initializers/."
  end
end
#
#namespace :deploy do
#  %w(start restart).each { |name| task name, :roles => :app do mod_rails.restart end }
#  %w(start restart).each { |name| task name, :roles => :app do mod_rails.restart end }
#end

